a06c2b589db5ca0acf11fd7fbf94564ef69be492,modules/pgp/src/test/java/org/mule/module/pgp/PGPSecurityFilterTestCase.java,PGPSecurityFilterTestCase,testAuthenticationAuthorised,#,66
Before Change
props.put(MuleProperties.MULE_USER_PROPERTY, "Mule server <mule_server@mule.com>");
MuleClient client = new MuleClient(muleContext);
MuleMessage reply = client.send("vm://echo", new String(msg), props);
assertNull(reply.getExceptionPayload());
// poll for the output file; wait for a max of 5 seconds
After Change
MuleClient client = muleContext.getClient();
byte[] msg = loadEncryptedMessage();
Map<String, Object> props = createMessageProperties();
client.dispatch("vm://echo", new String(msg), props);
MuleMessage message = client.request("vm://output", RECEIVE_TIMEOUT);
assertEquals("This is a test message.\r\nThis is another line.\r\n", message.getPayloadAsString());
}